#include"Common.h"

class PageCache
{
public:
    static PageCache* GetInstance()
    {
        return &_sInst;
    }

    //向pagecache申请
    Span* NewSpan(size_t k);

private:
    //私有化构造和拷贝构造
    PageCache(){}
    
    PageCache(const PageCache&) = delete; 
private:
    SpanList _spanlists[NSPANLIST];
    static PageCache _sInst;
public:
    //把锁公开
    std::mutex _PageMTX;

};